package cn.lili.controller.feign.wechat;

import cn.lili.modules.wechat.client.WechatMpCodeClient;
import cn.lili.modules.wechat.util.WechatMpCodeUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * 微信小程序二维码feign接口实现
 *
 * @author ftyy
 * @since  2023/3/22
 */
@RestController
@RequiredArgsConstructor
public class WechatMpCodeFeignController implements WechatMpCodeClient {

    public final WechatMpCodeUtil wechatMpCodeUtil;

    @Override
    public String createCode(String page, String scene) {
        return wechatMpCodeUtil.createCode(page,scene);
    }

    @Override
    public String createQrCode(String page) {
        return wechatMpCodeUtil.createQrCode(page);
    }
}
